package com.liehu.sms.client;

import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Employee的远程调用
 */
@Component
@FeignClient("liehu-user")
public interface EmployeeClient {
    //根据角色Id查询业务员
    @GetMapping("/employee/role/{roleId}")
    public Result findByRoleId(@PathVariable("roleId") String roleId);
}
